<?php

namespace Index\Controller;

use Think\Controller;
use Think\Hook;

class IndexController extends Controller
{
    protected $config = array(
        'login_auth' => false,
        'ctrl_auth' => false
    );

    public function index()
    {
        Hook::listen('web_index_page', $this);// 自定义首页
    }

    public function _empty($name)
    {
        Hook::listen('web_index_empty', $name);// 多页
    }
}